Propagate error from TAS request builder#5662
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
|
Hi @lchrzaszcz. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
f967229 to
1f54051
Compare
gabesaba
left a comment
There was a problem hiding this comment.
looks good modulo reverting a small change
| } | ||
|
|
||
| func constructPodSet(p *corev1.Pod) kueue.PodSet { | ||
| func constructPodSet(p *corev1.Pod) (*kueue.PodSet, error) { |
There was a problem hiding this comment.
nit: revert return type change (pointer)?
There was a problem hiding this comment.
Thanks! Reverted the change and returning zero-value in case of an error.
|
/retitle Propagate error from TAS request builder |
|
/lgtm thanks! |
|
LGTM label has been added. DetailsGit tree hash: 1c1253126fc8790af63cf7c2bd2b4254f365fa25 |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabesaba, lchrzaszcz, mimowo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This is a follow up after #5353. In one of the comments it has been spotted that we are silently ignoring errors from TAS request builder. This PR fixes the issue by refactoring builder and propagating errors.
Which issue(s) this PR fixes:
Related to: #5439
Special notes for your reviewer:
Does this PR introduce a user-facing change?